Page({
	data:{
		password:''
	},
	onPasswordInput(e){
		this.setData({
			password: e.datail.value
		});
	},
	login(){
		const{password}=this.data;
		if(!password){
			showToast({
				title:'请输入密码',
				icon:'none'
			});
			return;
		}
		const correctPassword='12345';
		if(password===correctPassword){
			navigateTo({
				url:'/page/tabBar/component/compnent',
				success:()=>{
					showToast({
						title:'登录成功',
						icon:'success'
					});
				}
			});
		}else{
			showToast({
				title:'密码错误！',
				icon:none,
				duration:2000
			});
		}
	},
	onLoad(options){},
	onReady(){},
	onShow(){},
	onHide(){},
	onUnload(){},
	onPullDownRefresh(){},
	onReachBottom(){},
	onShareAppMessage(){}
});